<!-- BEGIN tabs -->
<script language="javascript">

	function boxContentListTypeSelected(listId) {

		var typeField = $('type_'+listId);
		var sizeminField = $('sizemin_'+listId);
		var sizemaxField = $('sizemax_'+listId);
		
		if (typeField.value == "1") {
			sizeminField.disabled = true;
			sizemaxField.disabled = true;
		} else {
			sizeminField.disabled = false;
			sizemaxField.disabled = false;
		}
	}

	function boxContentListClassSelected(listId) {
		var classField = $('class_'+listId);
		var listClass = classField.value;
		//alert(listId + ": class = "+listClass);

		if(listClass == "BoxContentList")
		{
			Element.classNames($('bxl_field_type_'+listId)).remove('hidden');
			Element.classNames($('bxl_field_boxcontents_'+listId)).remove('hidden');
			Element.classNames($('bxl_field_size_'+listId)).remove('hidden');
			Element.classNames($('bxl_field_manualstep_'+listId)).remove('hidden');
			Element.classNames($('bxl_field_autostep_'+listId)).remove('hidden');
		}
		else
		{
			Element.classNames($('bxl_field_type_'+listId)).add('hidden');
			Element.classNames($('bxl_field_boxcontents_'+listId)).add('hidden');
			Element.classNames($('bxl_field_size_'+listId)).add('hidden');
			Element.classNames($('bxl_field_manualstep_'+listId)).remove('hidden');
			Element.classNames($('bxl_field_autostep_'+listId)).remove('hidden');
		}

	}

	function categorySelectChanged(listId) {
		updateDisplayVisibility(listId);
	}
	
	function addBoxContentList(url) {
		document.location = url + '&name=' + $('boxcontentlistname').value;
	}

	function saveBoxContentList(url, listId) {
		var form = $('boxtabform');
		form.action = url;
		form.submit();
	}

</script>
{bxt_comment}<br/>
<br/>
<form name="boxtabform" id="boxtabform" action="{form_action_modboxtab}" method="post">
{box_tab_content}
</form>
<!-- END tabs-->
